<!--
Copyright 2017 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<div layout="column">
  <kd-config-map-info config-map="$ctrl.configMapDetail"></kd-config-map-info>
  <kd-info-card>
    <kd-info-card-header>[[Data|Config map data header on details page]]</kd-info-card-header>
    <kd-info-card-section ng-if="$ctrl.configMapDetail.data">
      <kd-info-card-entry ng-repeat="(key, value) in $ctrl.configMapDetail.data"
                          title="{{key}}">
        <pre class="kd-pre-block">{{value}}</pre>
      </kd-info-card-entry>
    </kd-info-card-section>
    <kd-info-card-section class="kd-config-map-zero-state"
                          ng-if="!$ctrl.configMapDetail.data">
      <kd-zero-state>
        <kd-zero-state-title>[[There is no data to display|Zero state text on config map details view.]]</kd-zero-state-title>
        <kd-zero-state-text>[[You can edit config map to add data.|Zero state text on config map details view.]]</kd-zero-state-text>
      </kd-zero-state>
    </kd-info-card-section>
  </kd-info-card>
</div>
